﻿using AutoMapper;
using FastDFSCore;
using FastDFSCore.Protocols;
using HelenServer.FileStorage.Contracts;

namespace HelenServer.FileStorage.FastDFS;

public class FastDFSProfile : Profile
{
    public FastDFSProfile()
    {
        this.CreateMap<ClusterConfigurationModel, ClusterConfiguration>().ReverseMap();
        this.CreateMap<ConnectionAddressModel, ConnectionAddress>().ReverseMap();
        this.CreateMap<FastDFSFileInfoModel, FastDFSFileInfo>().ReverseMap();
        this.CreateMap<GroupInfoModel, GroupInfo>().ReverseMap();
        this.CreateMap<StorageInfoModel, StorageInfo>().ReverseMap();
        this.CreateMap<StorageNodeModel, StorageNode>().ReverseMap();
        this.CreateMap<TrackerModel, Tracker>().ReverseMap();
    }
}